#include <iostream>
#include "TCPSocket.h"
#include "NetAddr.h"
#include "Exception.h"
#include "TimeVal.h"
#include "Queue.h"
#include "BaseQueueMsg.h"
#include "FileMsg.h"
#include "LogManager.h"
#include "SHMLogAdapter.h"

class A
{
	public:
		A(){};
		~A(){};

		A& operator=(const A& other)
		{
			if(this != &other)
			{
				A::~A();
				new (this) A(other);
			}
			return *this;
		}

};

int main(int argc, char** argv)
{
	try
	{

//		sleep(2);
		LogManager::Instance()->UseAdapter(LogManager::SHMLOG_ADAPTER_TYPE);
		SHMLogAdapter* pAdapter = (SHMLogAdapter*)LogManager::Instance()->GetAdapter(LogManager::SHMLOG_ADAPTER_TYPE);
		LOGERROR2("this is test message 1,", "this is test message 2");
	}
	catch(Exception& e)
	{
		std::cout << e.What() << std::endl;
	}

	return 0;
}
